﻿#region Imports
using System.Windows.Controls;
using OneStopProgrammingMatrix.ViewModels;
#endregion

namespace OneStopProgrammingMatrix.Views
{
    /// <summary>
    /// Interaction logic for AddNewItem.xaml
    /// </summary>
    public partial class AddNewItem : UserControl
    {
        #region Declarations
        AddNewItemViewModel dataContext;
        #endregion

        #region Constructors
        public AddNewItem()
        {
            InitializeComponent();

            dataContext = new AddNewItemViewModel { BindedUserControl = this };
            this.Loaded += (s, e) => { this.DataContext = dataContext; };
        }
        #endregion
    }
}
